Usage of git submodule command
0x00 add a submodule to a repo
Sometimes our project may depends on other’s git project,so,how to handle this dependence in git ,just use git submodule
1 | git submodule add https://github.com/other/reponame reponame |
after this command , git will create a sub directory named
1 | ls reponame |
0x01 clone a repo with it submodule repos
1 | git clone --recursive <project url> |